package org.example.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Sinotn
 *
 * @Author: libin
 * @CreateTime: 2020-06-19 11:55
 * @Description: 订单对象
 */
public class Order implements Serializable {
    /**
     * 订单ID
     */
    private Long id;
    /**
     * 订单总金额
     */
    private BigDecimal amount;
    /**
     * 商品列表
     */
    private List<Product> productList;
    /**
     * 物流详情
     */
    private List<Logistics> LogisticsList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    public List<Logistics> getLogisticsList() {
        return LogisticsList;
    }

    public void setLogisticsList(List<Logistics> logisticsList) {
        LogisticsList = logisticsList;
    }

    public Order(Long id, BigDecimal amount, List<Product> productList, List<Logistics> logisticsList) {
        this.id = id;
        this.amount = amount;
        this.productList = productList;
        LogisticsList = logisticsList;
    }

    public Order() {
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", amount=" + amount +
                ", productList=" + productList +
                ", LogisticsList=" + LogisticsList +
                '}';
    }
}
